{% extends "base.html" %}
{% load static %}
{% block title %}记录{% endblock %}

{% block css %}
<link rel="stylesheet" href="{% static 'css/search_watch.css' %}">
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
{% endblock %}

{% block content %}
<div class="container-fluid px-5 py-2">
    <!-- 任务栏 -->
    <div class="row taskbar">
        <div class="col-8">
        </div>
        <div class="col-4">
        </div>
    </div>
    <!-- 内容栏 -->
    <div class="row contentbar">  
        <!-- 左侧本地页 -->
        <div class="col-8 row contentbar-left">
            <!-- 图表栏 -->
            <div class="col-4 chart">
                <div id="chart-pie" style="width: 95%; height: 300px;"></div>
                <div id="chart-bar" style="width: 95%; height: 300px;"></div>
                <div id="updating">
                    <div class="row">
                        <div id="updating-t" class="col-8">追番</div>
                        <div class="col-4">
                            <button id="updating-btn">更新</button>
                        </div>
                    </div>
                    
                    <div id="updating-content">
                    </div>
                </div>
            </div>
            <!-- 数据栏 -->
            <div class="col-8 data">
                <!-- 数据分类 -->
                <div class="row">
                    <!-- 搜索框 -->
                    <span class="col-3 search">
                        <input type="text" id="search-box" placeholder="请输入作品名称" value="{{ request.GET.name }}"> 
                        <!-- <button type="submit"><img src="{% static 'img/搜索.png' %}" class="click-img"></button>  -->
                    </span>
                    <!-- 观看状态 -->
                    <span class="status col-3">
                        <button id="all" class="status-on">所有</button>
                        <button id="ing">在看</button>
                    </span> 
                    <!-- 作品类型 -->
                    <span class="type col-5">
                        <button id="anime">动画</button> 
                        <button id="movie">电影</button> 
                        <button id="teleplay">电视剧</button> 
                        <button id="novel">小说</button> 
                    </span>
                </div>
                <br>
                <!-- 数据内容 -->
                <div class="scroll data-table">
                    <table id="table">
                        <thead>
                            <tr>
                                <th class="ming">名称</th>
                                <th>次数</th>
                                <th>时间</th>
                                <th>历经时长</th>
                                <th>状态</th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody> 
                    </table>
                </div>
                
            </div>
        </div>
        <!-- 右侧详情页 -->
        <div class="form-info col-4">
            <div class="button-add">
                <a id="button-add" href="/noinfo/add_watch/" target="update-iframe">新增记录</a>
            </div> 
            <div class="iframe">
                <iframe id="iframe" src="/noinfo/add_watch/" name="update-iframe" height="100%" width="100%" scrolling="no"></iframe>
            </div>
            
        </div>
    </div>
    <!-- 对话框 -->
    <div id="dialog">
        
    </div>
    <div id="overlay"></div>
</div>

<script src="{% static 'js/search_watch.js' %}"></script>


{% endblock %}